package com.lincoln.jenkins.test;

public enum SysMsgTypeEnum {
    /**
     * 被移除讨论组
     */
    REMOVE_GROUP(10000),
    /**
     * 被拉进讨论组
     */
    ADD_GROUP(10002),
    ;
    private int value;

    SysMsgTypeEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public static SysMsgTypeEnum findByType(Integer type) {
        if (type == null) {
            return null;
        }
        for (SysMsgTypeEnum sysMsgTypeEnum : SysMsgTypeEnum.values()) {
            if (sysMsgTypeEnum.getValue() == type) {
                return sysMsgTypeEnum;
            }
        }
        return null;
    }
}
